/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Oral Solution</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S14431 (C-0-T19651-A14411-A14412-A14413-S14419-S14431-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getOralSolution()
 * @model extendedMetaData="name='OralSolution'"
 * @generated
 */
public enum OralSolution implements Enumerator {
	/**
	 * The '<em><b>ORALSOL</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #ORALSOL_VALUE
	 * @generated
	 * @ordered
	 */
	ORALSOL(0, "ORALSOL", "ORALSOL"),

	/**
	 * The '<em><b>ELIXIR</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #ELIXIR_VALUE
	 * @generated
	 * @ordered
	 */
	ELIXIR(1, "ELIXIR", "ELIXIR"),

	/**
	 * The '<em><b>RINSE</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #RINSE_VALUE
	 * @generated
	 * @ordered
	 */
	RINSE(2, "RINSE", "RINSE"),

	/**
	 * The '<em><b>ORDROP</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #ORDROP_VALUE
	 * @generated
	 * @ordered
	 */
	ORDROP(3, "ORDROP", "ORDROP"),

	/**
	 * The '<em><b>SYRUP</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #SYRUP_VALUE
	 * @generated
	 * @ordered
	 */
	SYRUP(4, "SYRUP", "SYRUP");

	/**
	 * The '<em><b>ORALSOL</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>ORALSOL</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #ORALSOL
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int ORALSOL_VALUE = 0;

	/**
	 * The '<em><b>ELIXIR</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>ELIXIR</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #ELIXIR
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int ELIXIR_VALUE = 1;

	/**
	 * The '<em><b>RINSE</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>RINSE</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #RINSE
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int RINSE_VALUE = 2;

	/**
	 * The '<em><b>ORDROP</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>ORDROP</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #ORDROP
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int ORDROP_VALUE = 3;

	/**
	 * The '<em><b>SYRUP</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>SYRUP</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #SYRUP
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int SYRUP_VALUE = 4;

	/**
	 * An array of all the '<em><b>Oral Solution</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final OralSolution[] VALUES_ARRAY =
		new OralSolution[] {
			ORALSOL,
			ELIXIR,
			RINSE,
			ORDROP,
			SYRUP,
		};

	/**
	 * A public read-only list of all the '<em><b>Oral Solution</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<OralSolution> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Oral Solution</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static OralSolution get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			OralSolution result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Oral Solution</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static OralSolution getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			OralSolution result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Oral Solution</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static OralSolution get(int value) {
		switch (value) {
			case ORALSOL_VALUE: return ORALSOL;
			case ELIXIR_VALUE: return ELIXIR;
			case RINSE_VALUE: return RINSE;
			case ORDROP_VALUE: return ORDROP;
			case SYRUP_VALUE: return SYRUP;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private OralSolution(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //OralSolution
